package org.example.work.service;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.example.work.Mapper.Busermapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class insertuser {

    @Autowired
    private Busermapper buserm;
    public int insertusera(HttpServletRequest request) {

        String a= request.getParameter("name");
        String b= request.getParameter("password");
        System.out.println(a);
        int d=buserm.insert(a,b);
        return d;
    }
}
